<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>客户关系管理系统-礼品兑换管理</title>
    <%@ include file="/WEB-INF/views/common/common.jsp" %>
    <script type="text/javascript" src="/static/js/system/exchange.js"></script>
</head>
<body>

<div id="dic_layout" class="easyui-layout" fit="true">
    <div data-options="region:'west',split:true,title:'会员数据'" style="width:520px;">
        <table id="member_datagrid"></table>

    </div>
    <div id="ex_datagrid" data-options="region:'center',title:'礼品兑换'">
        <form id="editForm" method="post">
            <input type="hidden" name="id" id="empId">
            <table align="center" style="margin-top: 20px;
                border-collapse:separate; border-spacing:0px 10px;">
                <input type="hidden" readonly="readonly" name="member.id" id="mid"/>
                <input type="hidden" readonly="readonly" name="id" id="preid"/>
                <input type="hidden" readonly="readonly" name="present.totalNum" id="prenum2"/>
                <input type="hidden" readonly="readonly" name="inputUser.id" id="inputUser"/>
                <tr>
                    <td>会员卡号:</td>
                    <td><input type="text" readonly="readonly" name="cardNum" id="card_num"/></td>
                </tr>
                <tr>
                    <td>会员姓名:</td>
                    <td><input type="text" readonly="readonly" name="name" id="name"/></td>
                </tr>
                <tr>
                    <td>会员积分:</td>
                    <td><input type="text" readonly="readonly" name="integral" id="integral"/></td>
                </tr>
                <tr>
                    <td>礼品选择:</td>
                    <!--ComboGrid数据表格下拉框-->
                    <td><input type="text" readonly="readonly" name="prename" id="prename"/></td>
                </tr>
                <tr>
                    <td>兑换数量:</td>
                    <td><input type="text" readonly="readonly" name="preNum" id="preNum"/></td>
                </tr>
                <tr>
                    <td>消耗积分:</td>
                    <td><input type="text" readonly="readonly" name="preintegral" id="preintegral"/></td>
                </tr>
                <tr>
                    <td>剩余积分:</td>
                    <td><input type="text" readonly="readonly" name="balance" id="balance"/></td>
                </tr>
            </table>
        </form>
        <div id="bb" align="center">
            <a href="JavaScript:;" class="easyui-linkbutton"
               iconCls="icon-save" style="margin:40px;" id="exchange" onclick="exchange()">兑换</a>

            <a href="JavaScript:;" class="easyui-linkbutton"
               iconCls="icon-save" onclick="reset()">重置</a>
        </div>

        <%--<div id="ex_dialog"></div>--%>
    </div>

    <div data-options="region:'east',split:true,title:'礼品列表'" style="width:550px;">
        <table id="pre_datagrid"></table>

    </div>

</div>

</body>
</html>
